package com.carb.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 服务项目物品关联实体类
 * </p>
 *
 * @author XuChaoyang
 * @since 2025-01-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_project_item")
@Schema(description = "服务项目物品关联表")
public class ProjectItem implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "服务项目物品关联id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "服务项目id")
    private Long projectId;

    @Schema(description = "物品id")
    private Long itemId;

    @Schema(description = "物品数量")
    private Integer quantity;

}
